package com.oo.inherit_3.game;

/**
 * Monster--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 10:41
 **/
public class Monster {

    private String name;

    private int blood;

    private int attckPower;

    public Monster() {
    }

    public Monster(String name, int blood, int attckPower) {
        this.name = name;
        this.blood = blood;
        this.attckPower = attckPower;
    }

    protected String attack() {
        return "怪物"+this.getName()+"展开攻击\n当前生命值是："+this.getBlood()
                +"\n攻击力是："+this.getAttckPower();
    }

    protected void move() {
        System.out.println("怪物移动");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }

    public int getAttckPower() {
        return attckPower;
    }

    public void setAttckPower(int attckPower) {
        this.attckPower = attckPower;
    }
}
